<div class="row">
    <div class="col-xs-12">
        <div class="box box-primary">
            <div class="box-header">
                <h3 class="box-title">课程维护</h3>

                <div class="box-tools">
                    <button class="btn btn-success btn-sm" data-url="{{ url('/admin/subject/create') }}" onclick="jumpfun(this)">添加</button>
                </div>
            </div>

            <!-- /.box-header -->
            <div class="box-body table-responsive no-padding">
                <table class="table table-hover">
                    <tr>
                        <th>ID</th>
                        <th>课程名称</th>
                        <th>课程年龄</th>
                        <th>课时数</th>
                        <th>操作</th>
                    </tr>
                    @foreach($subjects as $subject)
                    <tr>
                        <td>{{ $subject->subject_id }}</td>
                        <td><a href="javascript:void(0)" data-url="{{ url('admin/course/findmore', $subject->subject_id) }}" onclick="jumpfun(this)">{{ $subject->name }}</a></td>
                        <td>{{ $subject->course_age }}岁</td>
                        <td>{{ $subject->class_hour }}</td>
                        <td>
                            <a style="margin:3px;" href="javascript:void(0)" data-url="{{ url('/admin/subject', $subject->subject_id.'/edit') }}" onclick="jumpfun(this)" class="X-Small btn-xs text-success "><i class="fa fa-edit"></i> 编辑</a>
                            {{--<a style="margin:3px;" href="javascript:void(0)" data-url="{{ url('/admin/course/class', $course->course_id) }}" onclick="delfun(this)" class="X-Small btn-xs text-danger "><i class="fa fa-remove"></i> 删除</a>--}}
                        </td>
                    </tr>
                    @endforeach
                </table>
            </div>
            <div class="box-footer clearfix">
                <ul class="pagination pagination-sm no-margin pull-right">
                    {!! $subjects->links('vendor.pagination.pages') !!}
                </ul>
            </div>
            <!-- /.box-body -->
        </div>
        <!-- /.box -->
    </div>
</div>